package regexppractice;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @description:
 * @author: jhy
 * @time: 2021/6/1 21:31
 */

//使用String的replaceAll方法将JDK1.3和JDK1.4替换为JDK
public class RegExpDemo9 {
    public static void main(String[] args) {

        String content = "JDK1.3JDK1.4";

        content = content.replaceAll("JDK1[.]\\d", "JDK");
        System.out.println(content);

    }
}
